package com.shiro.common.entity;

import com.shiro.common.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * Created with IntelliJ IDEA.
 * User: dengpeng
 * Date: 2018/7/5
 * Time: 10:52
 * Description: 操作日志
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Table(name = "log")
public class Log extends BaseEntity {

    /**说明*/
    @Column(name = "description",nullable = false,length = 255)
    private String description;

    /**用户*/
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "user_id")
    private User user;
}
